package com.eduction.service.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eduction.modules.target.dao.TargetDao;
import com.eduction.modules.target.entity.IndexTargetEntity;
import com.eduction.modules.target.entity.SonTargetEntity;
import com.eduction.service.ISchoolService;
@Service
public class SchoolService implements ISchoolService {
	@Autowired
	private TargetDao targetDao;
	@Override
	public List<IndexTargetEntity> getIndexTarget() throws SQLException {
		// TODO Auto-generated method stub
		List<IndexTargetEntity> lists =  targetDao.getAllIndexTarget(1);
		return lists;
	}
	@Override
	public List<SonTargetEntity> getSonTarget(String indexId) throws SQLException {
		// TODO Auto-generated method stub
		List<SonTargetEntity> lists =  targetDao.getSonTargetByIndexId(indexId);
		return lists;
	}
	
	
}
